home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- ** **
- ** Module: SR_ClipUtilities.h **
- ** **
- ** **
- ** Purpose: **
- ** **
- ** **
- ** **
- ** Copyright (C) 1995 Apple Computer, Inc. All rights reserved. **
- ** **
- ** **
- *****************************************************************************/
- #ifndef SR_ClipUtilities_h
- #define SR_ClipUtilities_h
-
- #include "SR.h"
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif /* __cplusplus */
-
- /******************************************************************************
- ** **
- ** Clip Utilities **
- ** **
- *****************************************************************************/
-
- void SR_ClipPlanesInDC(
- TQ3Matrix4x4 *frustumToDC,
- float *clipPlanesInDC);
-
-
- /******************************************************************************
- ** **
- ** Other Routines **
- ** **
- *****************************************************************************/
-
- void SRPointList_WDivide(
- TQ3RationalPoint4D *in,
- unsigned long numVertices,
- unsigned long sizeOfIn);
-
- void SRPointList_ClipTestVertices(
- TQ3RationalPoint4D *deviceVertices,
- unsigned long *clipFlags,
- long numVertices,
- float *clipPlanesInDC,
- long *clipFound,
- long *allOut,
- unsigned long sizeOfIn);
-
- void SRPointList_ClipVertices(
- TQ3RationalPoint4D *vertices,
- long sizeOfVertex,
- TQ3RationalPoint4D *clipVertices,
- long sizeOfClippedVertex,
- unsigned long *clipFlags,
- long *clippedVerticesFlags,
- long numVertices,
- long *numClippedVertices,
- float *clipPlanes,
- long mode);
-
-
- #ifdef __cplusplus
- }
- #endif /* __cplusplus */
-
- #endif /* SR_ClipUtilities_h */
-